<?php

//绝对路径：/var/www/html/new/d/;
//include '/var/www/html/new/d/common/func.inc.php';//文本验证和其他一些正则验证；
//include_once '/var/www/html/new/com.inc.php';
//$ac=$GLOBALS['_ac'];
//$pw=$GLOBALS['_pw'];
//$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));
//$aid=$_SESSION['sid'];
//
////获取已完成订单的lid和title
//$x = simplexml_load_string($s -> Order_Globle_Search(
//    "","$aid", "", "", "", "", "", "", "", "",
//    "", "", "", "", "", "0", "", "", "1", "1",
//    "0", "10", "0", "0","","0","0", "0","","",
//    "", "0", "0", "", ""));
//
//    print_r($x);
$dates=array("2015-04-29","2015-04-30","2015-05-01","2015-05-10");
var_dump($dates);
$weekArray=array("周日","周一","周二","周三","周四","周五","周六");
$dlen=count($dates);
for($a=0;$a<$dlen;$a++)
{  $wek=$dates[$a];echo $wek.'<br/>';
    $num=date("w",strtotime($wek));
echo strtotime($wek);
    echo $weekArray[$num];
}
